'''
解题思路：
1.input()输入月利润，下面要对其正确性进行判断（>0）
2.if...elif...else 判断月利润所在范围，并执行奖金数
3.打印结果
'''

MonthProfit = float(input("请输入月利润(单位/万元)： "))
if MonthProfit < 0:
    print("月利润输入有误，请重新输入！")
elif MonthProfit <= 10:
    prize = MonthProfit*0.1
elif MonthProfit <= 20:
    prize = 10*0.1+(MonthProfit-10)*0.075
elif MonthProfit <= 40:
    prize = 10*0.1+10*0.075+(MonthProfit-20)*0.05
elif MonthProfit <= 60:
    prize = 10*0.1+10*0.075+20*0.05+(MonthProfit-40)*0.03
elif MonthProfit <= 100:
    prize = 10*0.1+10*0.075+20*0.05+20*0.03+(MonthProfit-60)*0.015
else:
    prize = 10*0.1+10*0.075+20*0.05+20*0.03+40*0.015+(MonthProfit-100)*0.01
print("应发的奖金总数为："+str(prize)+"万元")